package com.pro.service.imple;

import com.pro.mapper.JsCommentGoodsMapper;
import com.pro.pojo.JsComment;
import com.pro.pojo.JsProduct;
import com.pro.service.JsCommentGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName:JsCommentGoodsServerImple
 * Package:com.pro.service.imple
 * Description:
 *
 * @Date:2021/11/9 14:07
 * @Author: LBF
 */
@Service
public class JsCommentGoodsServiceImple implements JsCommentGoodsService {

    @Autowired
    private JsCommentGoodsMapper jsCommentMapper;


    @Override
    public List<JsComment> getFrontEndComment(String date, String status) {
        return jsCommentMapper.getFrontEndComment(date,status);
    }

    @Override
    public Integer getFrontEndCommentCount(String date, String status) {
        return jsCommentMapper.getFrontEndCommentCount(date, status);
    }

    @Override
    public Integer getFrontEndCommentPeopleNumbers(String date,String status) {
        return jsCommentMapper.getFrontEndCommentPeopleNumbers(date,status);
    }

    @Override
    public Integer getFrontEndStatusCount(String status) {
        return jsCommentMapper.getFrontEndStatusCount(status);
    }


    @Override
    public List<JsComment> getBackstageComment(String date, String status) {
        return jsCommentMapper.getBackstageComment(date,status);
    }

    @Override
    public Integer getBackstageCommentCount(String date, String status) {
        return jsCommentMapper.getBackstageCommentCount(date, status);
    }

    @Override
    public Integer getBackstageCommentPeopleNumbers(String date,String status) {
        return jsCommentMapper.getBackstageCommentPeopleNumbers(date,status);
    }

    @Override
    public Integer getBackstageStatusCount(String status) {
        return jsCommentMapper.getBackstageStatusCount(status);
    }

    @Override
    public Integer editCommentStatus(String id, String status) {
        return jsCommentMapper.editCommentStatus(id, status);
    }

    @Override
    public JsProduct getGoodsById(Integer id) {
        return jsCommentMapper.getGoodsById(id);
    }

    @Override
    public List<JsComment> getBeforeCommentById(Integer id) {
        return jsCommentMapper.getBeforeCommentById(id);
    }

    @Override
    public List<JsComment> getBeforeCommentChildren(Integer id) {
        return jsCommentMapper.getBeforeCommentChildren(id);
    }

    @Override
    public List<JsComment> getCommentById(Integer id) {
        return jsCommentMapper.getCommentById(id);
    }

    @Override
    public List<JsComment> getCommentChildren(Integer id) {
        return jsCommentMapper.getCommentChildren(id);
    }

    @Override
    public Integer addComment(JsComment jsComment) {
        return jsCommentMapper.addComment(jsComment);
    }

    @Override
    public Integer editCommentDisplay(Integer id, String display) {
        return jsCommentMapper.editCommentDisplay(id, display);
    }

}
